;(() => {
  const num: number = 1
  const myName: string = '胭脂'
  // 对象类型
  const userInfo: {
    name: string
    age: number
  } = {
    name: '胭脂',
    age: 19,
  }
  // 数组类型
  const persons: string[] = ['1', '2', '3']
  // 类
  class Person {}
  const person: Person = new Person()

  // 函数
  const fullName: (x: string, y: string) => string = (
    x: string,
    y: string
  ): string => {
    return x + y
  }
})()
